check if file exist c#

63

c# check file exists -

if (File.Exists(@"D:\myfile.txt")) {
   Console.WriteLine("The file exists.");
}

Comments

Submit
0 Comments